import request from '@/utils/request'

class FreightModel {
  // 同步拉取模板
  static syncTemplate() {
    return request<any, any>({
      url: '/freight/syncAllStoreList',
      method: 'GET'
    })
  }

  // 详情
  static getDetail(freightId: number) {
    return request<any, any>({
      url: '/freight/detail',
      method: 'GET',
      params: { freightId }
    })
  }

  // 模板列表
  static getList(data: any) {
    return request<any, any>({
      url: '/freight/list',
      method: 'POST',
      data
    })
  }
}

export default FreightModel
